package com.test02;
/*
三个和尚升级版
  未知三个和尚的身高 求其最高值  最低值
 */

import java.util.Scanner;

public class IfTest {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入第一个和尚的身高");
        int height1 = sc.nextInt();
        System.out.println("请输入第二个和尚的身高");
        int height2 = sc.nextInt();
        System.out.println("请输入第三个和尚的身高");
        int height3 = sc.nextInt();
        if (height1 > height2 & height1 >  height3  ){
            System.out.println(height1);
        }else if (height2 > height1 & height2 > height3){
              System.out.println(height2);
        }else {System.out.println(height3);
        }
    }
}
